import { get, post } from './http'
export const apiLogin = param => post('baseapi/merchantBase/login', param); //登录接口
export const apiRegister = param => post('baseapi/merchantBase/register', param); //注册接口
export const apiSMSCode = param => post('baseapi/sendSms/sendSms', param); //获取短信验证码接口
export const apiForgetPassword = param => post('baseapi/merchantBase/forgetPassword', param); //忘记密码接口

export const apiMerchantIndex= param => post('baseapi/merchant/merchantIndex', param); //基础配置
export const apiMerchantConfig= param => post('baseapi/merchantBase/merchantConfig', param); //基础配置
export const apiGetToolsLink= param => post('baseapi/tools/getTools', param); //获取第三方链接

//店铺管理
export const apiGetMerchantShopList = param => post('baseapi/merchant/getMerchantShopList', param); //获取店铺名称列表接口
export const apiMerchantShop= param => post('baseapi/merchant/merchantShop', param); //获取店铺列表接口
export const apiShopAuthConfig = param => post('baseapi/merchant/shopAuthConfig', param); //获取店铺授权参数接口
export const apiBindShop = param => post('baseapi/merchant/bindShop', param); //获取店铺授权参数接口
export const apiShopFlagSetting = param => post('baseapi/merchant/shopFlagSetting', param); //店铺标旗接口
export const apiShopAuth = param => post('baseapi/merchant/shopAuth', param); //店铺标旗接口

//商品管理
export const apiGetGoodsInfo = param => post('baseapi/Getgoods/getGoodsInfo', param, {timeout:15000}); //获取商品信息
export const apiDelGoods = param => post('baseapi/merchant/delGoods', param); //删除商品图片
export const apiMerchantGoods = param => post('baseapi/merchant/merchantGoods', param); //商品列表
export const apiChangeGoodsImg = param => post('baseapi/merchant/changeGoodsImg', param); //更换商品图片
export const apiDeleteShopGoods = param => post('baseapi/merchant/deleteShopGoods', param); //删除商品
export const apiCreateGoods = param => post('baseapi/merchantSale/createGoods', param); //添加商品
//发布计划
export const apiShopTagInfo = param => post('baseapi/merchant/shopTagInfo', param); //获取平台类型数据
export const apiGetRemarkList = param => post('baseapi/merchantBase/getRemarkList', param); //获取商家要求
export const apiGetServiceFeeList = param => post('baseapi/merchant/getServiceFeeList', param); //获取接单设置标签价格表
export const apiMerchantUserStatus = param => post('baseapi/merchant/merchantUserStatus', param); //获取商户配置
export const apiCreateSalePlan = param => post('baseapi/merchantSale/createSalePlan', param); //发布销量计划
export const apiCreateSaleDragPlan = param => post('onedragn/merchantSale/createSalePlan', param); //发布一托N计划
export const apiCreateFlowPlan = param => post('baseapi/merchantFlow/createFlowPlan', param); //发布流量计划
export const apiSaleDetail = param => post('baseapi/merchantSale/saleDetail', param); //销量计划详情
export const apiFlowDetail = param => post('baseapi/merchantFlow/flowDetail', param); //流量计划详情

//计划列表
export const apiCopyPlan = param => post('onedragn/merchantSale/CopyPlan',param);// 发布一拖N销量计划(复制计划)
export const apiSalePlanList = param => post('baseapi/merchantSale/salePlanList', param); //销量计划列表
export const apiFlowPlanList = param => post('baseapi/merchantFlow/flowPlanList', param); //流量计划列表
export const apiStopFlowPlan = param => post('baseapi/merchantFlow/stopPlan', param); //流量计划终止
export const apiOneDragInfo = param => post('onedragn/merchantSale/onedragnInfo', param); //附宝贝信息

export const apiStopSalesPlan = param => post('baseapi/merchantSale/stopPlan', param); //销量计划终止
//计划详情
export const apiSalesRevokeSalePlan = param => post('baseapi/merchantSale/revokeSalePlan', param); //撤销销量计划
export const apiFlowRevokeSalePlan = param => post('baseapi/merchantFlow/revokeFlowPlan', param); //撤销销量计划
//销量管理
export const apiSaleTaskWaitList = param => post('baseapi/merchantSale/saleTaskWaitList', param); //等待执行
export const apiRealWaitGetSaleTaskList = param => post('baseapi/merchantSale/realWaitGetSaleTaskList', param); //已派单未领取
export const apiNotCheckSaleTaskList = param => post('baseapi/merchantSale/notCheckSaleTaskList', param); //待审核
export const apiSubmitSaleCheck = param => post('baseapi/merchantSale/submitSaleCheck', param); //提交审核订单

export const apiQueryOrder = param => post('baseapi/merchantsale/queryOrder', param); //查询订单
export const apiExportSaleTaskDone = param => get('baseapi/merchant/exportSaleTaskDone', param,{timeout:400000}); //导出销量已完成数据
export const apiExportSaleTaskDownLoad = param => get('baseapi/merchant/exportSaleTaskDone', param,{timeout:400000,responseType:'blob'}); //导出销量已完成数据

export const apiGetAppealList = param => post('baseapi/merchant/getAppealList', param); //获取申诉信息
export const apiDelImg = param => post('baseapi/wechart/delImg', param); //删除申诉图片
export const apiCreateAppealTask = param => post('baseapi/merchant/createAppealTask', param); //创建申诉
export const apiUrgeReceipt = param => post('baseapi/merchantSale/UrgeReceipt', param); //催收货商家端
//已完成
export const apiSuccessCheckSaleTaskList = param => post('baseapi/merchantSale/successCheckSaleTaskList', param,{timeout:400000}); //已完成列表
export const apiMarkSaleTask = param => post('baseapi/merchantSale/markSaleTask', param); //标记已完成订单
export const apiPushPlatformName = param => post('baseapi/merchantSale/pushPlatformName', param); //账号查询

export const apiSaleTaskFailList = param => post('baseapi/merchantSale/saleTaskFailList', param); //失败订单
export const apiSaleTaskAllList = param => post('baseapi/merchantSale/saleTaskAllList', param); //全部订单
//评价
export const apiCreateAssessTask = param => post('baseapi/merchantSale/createAssessTask', param); //邀请评价
export const apiCreateAssessMultiTasking = param => post('baseapi/merchantSale/createAssessMultitasking', param); //邀请评价一拖N
export const apiBatchCreateAssessTask = param => post('baseapi/merchantSale/batchCreateAssessTask', param); //批量邀请
export const apiAssessTaskOver = param => post('baseapi/merchantSale/assessTaskOver', param); //终止评价任务
export const apiCheckAssessTask = param => post('baseapi/merchantSale/checkAssessTask', param); //审核评价任务
export const apiAssessTaskList = param => post('baseapi/merchantSale/assessTaskList', param,{timeout:400000}); //评价任务列表
export const apiAssessDetail = param => post('baseapi/merchantSale/assessDetail', param); //审核评价任务
export const apiAppealTaskList = param => post('baseapi/assess/appealTask', param); //商户端评论申诉列表
export const apiAppealTaskDue = param => post('baseapi/assess/appealTaskDue', param); //商户端处理评价任务申诉
export const apiOnedragnGoods = param => post('baseapi/merchantSale/getOnedragnGoods', param); //获取一拖N邀请评价列表宝贝

export const apiExportAssessTaskDone = param => get('baseapi/merchant/exportAssessTaskDone', param,{timeout:400000}); //导出评论已完成数据
export const apiExportAssessTaskDownLoad = param => get('baseapi/merchant/exportAssessTaskDone', param,{timeout:400000,responseType:'blob'}); //导出评论已完成数据

//流量
export const apiFlowTaskWaitList = param => post('baseapi/merchantFlow/flowTaskWaitList', param); //等待执行
export const apiRealWaitGetFlowTaskList = param => post('baseapi/merchantFlow/realWaitGetFlowTaskList', param); //已派单未领取
export const apiSubmitFlowCheck = param => post('baseapi/merchantFlow/submitFlowCheck', param); //批量审核流量任务
export const apiNotCheckFlowTaskList = param => post('baseapi/merchantFlow/notCheckFlowTaskList', param); //待审核流量任务
export const apiSuccessCheckFlowTaskList = param => post('baseapi/merchantFlow/successCheckFlowTaskList', param,{timeout:400000}); //流量已完成任务
export const apiFlowTaskFailList = param => post('baseapi/merchantFlow/flowTaskFailList', param); //流量失败订单
export const apiFlowTaskAllList = param => post('baseapi/merchantFlow/flowTaskAllList', param); //流量全部订单

export const apiExportFlowTaskDone = param => get('baseapi/merchant/exportFlowTaskDone', param,{timeout:400000}); //导出流量已完成数据
export const apiExportFlowTaskDownLoad = param => get('baseapi/merchant/exportFlowTaskDone', param,{timeout:400000,responseType:'blob'}); //导出流量已完成数据

// 申诉工单
export const apiAppealTask = param => post('baseapi/merchant/appealTask', param); //申诉订单
//资金明细
export const apiMerchantCapitalFlow = param => post('baseapi/merchant/merchantCapitalFlow', param); //资金明细

export const apiIsBindShop = param => post('baseapi/merchant/isBindShop', param); //资金明细
//提现
export const apiMerchantWithdraw = param => post('baseapi/merchant/merchantWithdraw', param); //提现页面数据
export const apiSubmitMerchantWithdraw = param => post('baseapi/merchant/submitMerchantWithdraw', param); //提交提现
//充值
export const apiSubmitMerchantRecharge = param => post('baseapi/merchant/submitMerchantRecharge', param); //提交充值
export const apiMerchantRecharge = param => post('baseapi/merchant/merchantRecharge', param); //充值

export const apiReconciliation = param => post('baseapi/merchant/reconciliation', param); //充值

//商家返款
export const apiMerchantUserInfo = param => post('baseapi/merchant/merchantUserInfo', param); //商户信息
export const apiMerchantRebate = param => post('baseapi/merchant/merchantRebate', param); //商家返款列表
export const apiSubmitRebateCheck = param => post('baseapi/merchant/submitRebateCheck', param); //商家返款审核
export const apiSetWechat = param => post('baseapi/merchant/setWechat', param); //商家返款设置微信
export const apiSetBank = param => post('baseapi/merchant/setBank', param); //商家返款设置银行卡
export const apiMerchantRebateAppealProcess = param => post('baseapi/merchant/merchantRebateAppealProcess', param); //商家返款申诉

//公告
export const apiMessageList = param => post('baseapi/merchant/messageList', param); //公告列表
export const apiNoticeDetail = param => post('baseapi/merchant/noticeDetail', param); //公告详情

//个人中心
export const apiChangeQqWeChat = param => post('baseapi/merchant/changeQqWeChat', param); //社交号更换
export const apiVerifyPhoneCode = param => post('baseapi/merchant/verifyPhoneCode', param); //手机验证码
export const apiChangePhone = param => post('baseapi/merchant/changePhone', param); //更换手机
export const apiChangePassword = param => post('baseapi/merchant/changePassword', param); //更换密码
